//
//  Callview.m
//  UI_Homework_06
//
//  Created by 黄威 on 16/5/10.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "Callview.h"

@implementation Callview

//@property (nonatomic, retain)UILabel *nameOfLabel;
//@property (nonatomic, retain)UILabel *phoneOfLaber;
//@property (nonatomic, retain)UIView  *xianOfView;
//@property (nonatomic, retain)UIImageView *imageView;

-(instancetype)initWithFrame:(CGRect)frame{

    [super initWithFrame:frame];
    
    if (self) {
        [self config];
    }

    return self;

}



- (void)config{


    self.nameOfLabel = [[UILabel alloc]initWithFrame:CGRectMake(200, 0, 200, 75)];
    self.nameOfLabel.backgroundColor = [UIColor greenColor];
    self.nameOfLabel.font = [UIFont systemFontOfSize:15];
    [self addSubview:self.nameOfLabel];
    
    self.phoneOfLaber = [[UILabel alloc]initWithFrame:CGRectMake(200, 75, 200, 75)];
    self.phoneOfLaber.backgroundColor = [UIColor redColor];
    [self addSubview:self.phoneOfLaber];
    self.phoneOfLaber.font = [UIFont systemFontOfSize:15];
    
    self.xianOfView = [[UIView alloc]initWithFrame:CGRectMake(0, 151, 375, 2)];
    self.xianOfView.backgroundColor = [UIColor blackColor];
    [self addSubview:self.xianOfView];
  
    self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 199, 150)];
    [self addSubview: self.imageView];
   
    [_imageView release];
    [_xianOfView release];
    [_nameOfLabel release];
    [_phoneOfLaber release];





}

@end
